package com.hm.springbootmybatis.service.impl;

import com.hm.springbootmybatis.mapper.UserMapper;
import com.hm.springbootmybatis.pojo.User;
import com.hm.springbootmybatis.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserById(Integer id) {
        return userMapper.getUserById(id);
    }
}
